#!/usr/bin/python

print 'arithmetic:'
print 2 ** 2 # 2^2
print 10.0 // 3.0 # floor(10/3)
print 10.0 / 3.0 # 3.33333
print 10.0 // 2.0 # 5.0
print 10.0 / 2.0 # 5.0

#logic operator
print 'logic:'
a = 1
print 0 or 99 # 99
print 2 and 99 # 99


#member operator
print 'member:'
list = [False, 1, 3, 5, 7, 9]
print 1 in list
print 2 in list
print False in list
print 0 in list # 0 == False

#identity
print 'identity:'
a = 5
b = 5
c = 6
print a is b #true number buffering
print a is c #false
print id(a)
print id(b) # the same results as id(a)
print id(c)

print 'int buffering:'
a = 522500
b = 522500
print a is b


